package com.itheima.reggie.service;

import com.itheima.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    
    /**
     * 清空购物车
     * @return
     */
    int clean();
    
    /**
     * 查看购物车数据
     * @return
     */
    List<ShoppingCart>  list();
    
    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);
}
